package com.crrcdt.mail;

import com.crrcdt.mail.constant.MailConstants;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan("com.crrcdt.mail.mapper")
@EnableScheduling
@EnableRabbit
public class MailApplication {

    public static void main(String[] args) {
        SpringApplication.run(MailApplication.class, args);
    }
//    @Bean
//    Queue queue() {
//        return new Queue(MailConstants.MAIL_QUEUE_NAME);
//    }
}
